package com.cy.mall.service.customer.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cy.mall.dao.mapper.customer.BankmaCustomerMapper;
import com.cy.mall.model.domain.customer.BankmaCustomer;
import com.cy.mall.service.BaseService;
import com.cy.mall.service.customer.BankmaCustomerService;

/**
 * BankmaCustomerServiceImpl
 *
 * @author tanyilin
 *
 * @create 2019年1月28日 上午11:47:52
 */
@Service
public class BankmaCustomerServiceImpl extends BaseService implements BankmaCustomerService {

	@Autowired
	private BankmaCustomerMapper bankmaCustomerMapper;

	@Override
	@Transactional
	public void addBankmaCustomer(BankmaCustomer bankmaCustomer) {
		Date time = new Date();
		bankmaCustomer.setCreateTime(time);
		bankmaCustomer.setUpdateTime(time);
		bankmaCustomerMapper.insertSelective(bankmaCustomer);
	}
	
	
}
